package com.esd.crm.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.esd.crm.entity.Address;

@Mapper
public interface AddressMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(Address record);

	int insertSelective(Address record);

	Address selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(Address record);

	int updateByPrimaryKey(Address record);

	List<Address> selectByParam(Map<String, Object> param);

	Integer selectByParamCount(Map<String, Object> param);
	
	int updateFrequently(Address record);
	
	Address getFrequentlyDef(Map<String, Object> param);
	
}